package leetcode.string;

import leetcode.string.common.StringUtils;

class Solution434 {
    public int countSegments(String s) {
        return StringUtils.countSegments(s);

    }
}

public class leetcode434 {
    public static void main(String[] args) {
        Solution434 solution434 = new Solution434();
        System.out.println(solution434.countSegments("Hello, my name is John"));
        System.out.println(solution434.countSegments(", , , ,        a, eaefa"));
    }
}
